﻿using Graphviz4Net.WPF.Example;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LogAnalyzer
{
    public class Table : GraphComponent
    {
        public List<TableRow> data { get; set; }

        public Table(List<List<Node>> t)
        {
            data = new List<TableRow>();

            foreach (var row in t)
            {
                var tr = new TableRow();
                tr.Col0 = row[0].nodeId;
                tr.Col1 = row[1].nodeId;
                tr.Col2 = row[2].nodeId;
                tr.Col3 = row[3].nodeId;
                tr.Col4 = row[4].nodeId;
                tr.Col5 = row[5].nodeId;
                tr.Col6 = row[6].nodeId;
                tr.Col7 = row[7].nodeId;
                tr.Col8 = row[8].nodeId;
                tr.Col9 = row[9].nodeId;
                tr.Col10 = row[10].nodeId;
                tr.Col11 = row[11].nodeId;
                tr.Col12 = row[12].nodeId;
                tr.Col13 = row[13].nodeId;
                tr.Col14 = row[14].nodeId;
                tr.Col15 = row[15].nodeId;
                data.Add(tr);
            }
        }

        public string Id
        {
            get { return ""; }
        }
    }
}
